package com.xmut.mall.order.service.impl;

import com.xmut.mall.order.utils.RespBean;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.Query;

import com.xmut.mall.order.dao.AfterSaleLogDao;
import com.xmut.mall.order.entity.AfterSaleLogEntity;
import com.xmut.mall.order.service.AfterSaleLogService;


@Service("afterSaleLogService")
public class AfterSaleLogServiceImpl extends ServiceImpl<AfterSaleLogDao, AfterSaleLogEntity> implements AfterSaleLogService {

    /**
     * 根据售后sn号码获取售后日志
     * @param sn
     * @return
     */
    @Override
    public RespBean getAfterSaleLog(String sn) {
        List<AfterSaleLogEntity> list = this.list(new QueryWrapper<AfterSaleLogEntity>().eq("sn", sn));
        return RespBean.success("获取成功",list);
    }
}